#ifndef TIMER_H
#define TIMER_H
//--------------------------------------------------------------------------------
#include "Defines.h"
//--------------------------------------------------------------------------------
namespace ns
{
	class ENGINE_API Timer
	{
	friend class Game;

	public:
		Timer();

		float getDT();
		unsigned int getFPS();

	private:
		void FirstMeasure();
		void Measure();

		LARGE_INTEGER frecuency;
		LARGE_INTEGER actualTime;
		LARGE_INTEGER lastTime;
		double deltaTime;
		double measureFPSSample;

		unsigned int frameCounter;
		unsigned int FPS;
	};
}
//--------------------------------------------------------------------------------
#endif
